<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

/*------------------- HOME CONTROLLER ----------------*/
//$route['default_controller'] = "home_controller/index";
$route['default_controller'] = "saporo_controller/index";
$route['login-sapporo'] = "saporo_controller/login";


$route['home'] = "home_controller";
$route['change-image'] = "home_controller/change_image";
$route['get-image'] = "home_controller/get_more_image";


/*----------------  LIFE-FACTOR ------------ */

$route['life-dimension'] = "life_dimension_controller/index";
$route['life-dimension/detail/(:num)'] = "life_dimension_controller/detail/$1";
$route['life-dimension/detail/(:num)/(:any)'] = "life_dimension_controller/detail/$1";


/*----------------  DUMMY DATA ------------ */
$route['add-dummy-data'] = "home_controller/add_dummy_data";

/*----------------  COMMUNITY ------------ */
$route['community'] = "community_controller/index";

/*---------------- EVENTS ------------ */
$route['event'] = "event_controller/index/$1";
$route['event/(:num)/(:any)'] = "event_controller/index/$1/$2";
$route['event/detail/(:num)/(:any)'] = "event_controller/detail/$1/$2";
$route['event/join/(:num)/(:num)/(:num)'] = "event_controller/join/$1/$2/$3";

/*---------------- PROFILE ------------ */
$route['profile'] = "profile_controller/index";
$route['profile/comment/(:num)'] = "profile_controller/comment/$1";
$route['profile/comment/event/(:num)'] = "event_controller/comment/$1";

/*---------------- CONNECTION ------------ */
$route['connection'] = "connection_controller/index";
$route['connection/(:num)/(:any)'] = "connection_controller/index/$1/$2";
$route['add-friend'] = "connection_controller/add_friend";


/*---------------- BOOK ------------ */
$route['book'] = "books_controller/index";
$route['book/(:num)/(:any)'] = "books_controller/index/$1/$2";
$route['book/(:num)/(:any)'] = "books_controller/index/$1";
$route['book/detail'] = "books_controller/detail";
$route['book/detail/(:num)/(:any)'] = "books_controller/detail/$1";

/*---------------- SEARCH ------------ */
$route['search'] = "search_controller/index";

/*---------------- NEWS ------------ */
$route['news'] = "news_controller/index";
$route['news/(:num)/(:any)'] = "news_controller/index/$1/$2";
$route['post-news'] = "news_controller/page";

/*---------------- REVIEW ------------ */
$route['review/(:num)'] = "review_controller/index/$1";
$route['review-post/(:num)'] = "review_controller/post_review/$1";

/*-----------------  AUTHENTICATION ------------------*/
$route['authentication'] = "authentication_controller/login";
$route['authentication/test'] = "authentication_controller/test_ajax";
$route['log-out/(:num)'] = "authentication_controller/log_out/$1";
        /*-----------------  INBOX ------------------*/
        $route['mail'] = "mailer_controller/index";

$route['404_override'] = '';
$route['restore'] = "system_controller/restore";
$route['backup'] = "system_controller/backup";

/*-----------------  WEB API ------------------*/
$route['api/(:any)/(:any)/(:any)/(:any)'] = "web_api_controller/$1/$2/$3/$4";
$route['api/(:any)/(:any)/(:any)'] = "web_api_controller/$1/$2/$3";
$route['api/(:any)/(:any)'] = "web_api_controller/$1/$2";
$route['api/(:any)'] = "web_api_controller/$1";

$route['notification'] = "notification_controller/index";

$route['chat-log'] = "chat_log_controller/index";
$route['chat-log/(:num)'] = "chat_log_controller/index/$1";
$route['chat-log/login'] = "chat_log_login_controller";
$route['chat-log/login/do-login'] = "chat_log_login_controller/sos_login";
$route['chat-log/get-message'] = "chat_log_controller/get_message";
$route['chat-log/post-message'] = "chat_log_controller/post_message";
$route['chat-log/count-message'] = "chat_log_controller/get_message_count";
$route['chat-log/get-history-message'] = "chat_log_controller/get_history_message";


/*------------------- ADMIN ----------------------*/
$route['login'] = "admin/login_controller";
$route['login/check-login'] = "admin/login_controller/check_login";
$route['ci-admin'] = 'admin/login_controller';

$route['ci-admin/(:any)/(:any)/(:num)/(:num)'] = "admin/$1/$2/$3/$4";
$route['ci-admin/(:any)/(:any)/(:num)'] = "admin/$1/$2/$3";
$route['ci-admin/(:any)/(:num)'] = "admin/$1/index/$2";
$route['ci-admin/(:any)/(:any)'] = "admin/$1/$2";
$route['ci-admin/(:any)'] = "admin/$1";

$route['ci-admin/chat'] = "admin/chat_controller/index";
$route['ci-admin/chat/get-message'] = "admin/chat_controller/get_message";
$route['ci-admin/chat/post-message'] = "admin/chat_controller/post_message";

$route['concierge-service-description'] = 'concierge_service_controller/description';
$route['ipad/profile/(:num)'] = 'admin/ipad_profile_controller/index/$1';
$route['ipad/profile/(:num)/(:num)'] = 'admin/ipad_profile_controller/index/$1/$2';
$route['ipad/community-news'] = 'admin/ipad_community_news_controller/index';
$route['ipad/update-profile/(:num)'] = 'admin/ipad_profile_controller/update/$1';

/*--------------------LOG-IN----------------------------*/
$route['loginuser']="login_controller/index";
//$route['ci-admin/life-dimension'] = 'admin/life_dimension_controller/index';
//$route['ci-admin/life-dimension/(:any)/(:any)'] = 'admin/life_dimension_controller/$1/$2';
//$route['ci-admin/life-dimension/(:any)'] = 'admin/life_dimension_controller/$1';

//$route['life-dimension'] = "life_dimension_controller/index";
//$route['life-dimension/(:num)/(:any)'] = "life_dimension_controller/index/$1/$2";


/* End of file routes.php */
/* End of file routes.php */
/* Location: ./application/config/routes.php */